package org.zqx.generator;

import cn.hutool.core.io.FileUtil;

import java.io.File;

/**
 *静态文件生成器
 *
 */
public class StaticGenerator {

    public static void main(String[] args) {
        String projectPath = System.getProperty("user.dir");
        String inputPath = projectPath + File.separator + "guoli-generator-demo-projects" + File.separator +"acm-template";
        String outputPath = projectPath;
        copyFilesByHutool(inputPath, outputPath);
    }

    /**
     * 拷贝文件（使用Hutool实现）
     * @param inputPath
     * @param outputPath
     */
    public static void copyFilesByHutool(String inputPath, String outputPath){
        FileUtil.copy(inputPath,outputPath,false);
    }
}
